//
//  PAVerificationCodeView.m
//  PAMobileWallet
//
//  Created by Pay_SMP002 on 13-7-4.
//  Copyright (c) 2013年 平安付. All rights reserved.
//

#import "PAVerificationCodeView.h"
#import "PAVerificationCodeViewController.h"

@implementation PAVerificationCodeView

- (id)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        // Initialization code
        CGFloat x, y, w, h;
        CGSize size = frame.size;

        w = 100;
        h = 30;
        x = (size.width - w) / 2;
        y = 150;

        UIButton *loginButton = [UIButton buttonWithType:UIButtonTypeRoundedRect];
        loginButton.frame = CGRectMake(x, y, w, h);
        [loginButton setTitle:@"主页" forState:UIControlStateNormal];
        [loginButton addTarget:self action:@selector(buttonActive:) forControlEvents:UIControlEventTouchUpInside];
        loginButton.tag = 0;
        [self addSubview:loginButton];
    }
    return self;
}

-(void)buttonActive:(id)sender {
    [self.parentController testNext:sender];
}

@end
